package io.seata.server.store;

import io.seata.common.loader.LoadLevel;
import io.seata.core.store.db.AbstractDataSourceGenerator;

import javax.sql.DataSource;

/**
 * 自动注入数据源拓展数据源不在局限官方提供方案
 *
 * @author lw
 */
@LoadLevel(name = "auto")
public class AutoDataSourceGenerator extends AbstractDataSourceGenerator {

    private DataSource dataSource;

    @Override
    public DataSource generateDataSource() {
        return dataSource;
    }
}
